.PHONY: all clean

all: create_pipe writer reader

create_pipe: mkfifo_test.cc
	g++ -o $@ $^ -std=c++11

writer: write.cc
	g++ -o $@ $^ -std=c++11

reader: read.cc
	g++ -o $@ $^ -std=c++11

clean:
	rm -f create_pipe writer reader mypipe  # 同时清理管道文件
	